<?php

namespace app\api\model\xykeep\goods;

use think\Model;


class Activity extends Model
{


    // 表名
    protected $name = 'xykeep_goods_activity';
    
    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'integer';

    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = 'updatetime';
    protected $deleteTime = false;

    // 追加属性
    protected $append = [
    ];

    protected function base($query)
    {
        $query->where('status','normal')->order('weigh desc,id desc');
    }

}
